<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});
//后台
Route::get('/admin','Admin\AdminController@index');
//后台用户管理
Route::controller('/admin/user','Admin\UserController');
//用户注册页面
Route::get('/register','Home\LoginController@register');
//注册是的数据处理
Route::post('/register','Home\LoginController@doregister');
//验证码验证
Route::get('/register/send','Home\LoginController@send');
//请求验证
Route::get('/send','Home\LoginController@sendmessage');
//友情链接的添加
Route::get('/admin/link','Admin\LinkController@linkadd');
//提交友情链接数据处理
Route::post('/admin/link/add','Admin\LinkController@link');
//友情链接的数据列表
Route::get('/admin/link/list','Admin\LinkController@linklist');
//友情链接的删除操作
Route::controller('/admin/link','Admin\LinkController');
//友情链接修改操作
Route::controller('/admin/link','Admin\LinkController');


//咨询社的管理
Route::controller('/admin/consul','Admin\ConsulController');
